package com.tang.excel.batch.export;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: tang
 * @Description:
 * @Date 2025/1/2 14:40
 */
@RequestMapping("/export")
@RestController
public class ExportController {

    @Resource
    ExportService exportService;

    @GetMapping("/data")
    public void exportData(ExportDTO exportDTO,HttpServletResponse response) {
        exportService.exportData(exportDTO,response);
    }

}
